package com.arong.swing.db.entity;

import java.sql.Timestamp;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public class AsPackactReceive { 

	private String id;

	private String allgenerateId;

	private String allpackageVer;

	private String devId;

	private Timestamp startTime;

	private Timestamp endTime;

	private String result;

	private String resultDetail;

	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return id;
	}

	public void setAllgenerateId(String allgenerateId) {
		this.allgenerateId = allgenerateId;
	}
	
	public String getAllgenerateId() {
		return allgenerateId;
	}

	public void setAllpackageVer(String allpackageVer) {
		this.allpackageVer = allpackageVer;
	}
	
	public String getAllpackageVer() {
		return allpackageVer;
	}

	public void setDevId(String devId) {
		this.devId = devId;
	}
	
	public String getDevId() {
		return devId;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}
	
	public Timestamp getStartTime() {
		return startTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}
	
	public Timestamp getEndTime() {
		return endTime;
	}

	public void setResult(String result) {
		this.result = result;
	}
	
	public String getResult() {
		return result;
	}

	public void setResultDetail(String resultDetail) {
		this.resultDetail = resultDetail;
	}
	
	public String getResultDetail() {
		return resultDetail;
	}

	public boolean equals(Object obj) {
		boolean equals = false;
		if (obj != null && obj instanceof AsPackactReceive) {
			AsPackactReceive another = (AsPackactReceive) obj;
			equals = new EqualsBuilder()
					.append(id, another.getId())
					.isEquals();
		}
		return equals;
	}
	
	public int hashCode() {
		return new HashCodeBuilder(17, 37)
				.append(id)
				.toHashCode();
	}
	
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", getId())
				.toString();
	}
}